package java19_1_4;

/**
 * @author yuisama
 * @date 2022/01/04 21:16
 **/
public class Cat extends Animal{
    public Cat() {}
    public Cat(String name,int age) {
        super(name, age);
    }
    public void eat(String food) {
        System.out.println("猫猫:"+this.name+"正在吃"+food);
    }
    public Animal func() {
        return new Animal();
    }
    // 是Cat类独有的。
    public void yell() {
        System.out.println("喵喵喵");
    }
}